package com.patterns.demo.Iterator.collection;

import com.patterns.demo.Iterator.iterator.Iterator;

/**
 * Author: SamGroves
 * <p>
 * Description:
 * <p>
 * Date: 2017/12/19
 */
public interface Collection {
    public Iterator iterator();

    // 取得集合元素
    public Object get(int i);

    // 取得集合大小
    public int size();
}
